// Generated from Formula.g4 by ANTLR 4.7.

package parser

import (
	"fmt"
	"unicode"

	"github.com/antlr/antlr4/runtime/Go/antlr"
)

// Suppress unused import error
var _ = fmt.Printf
var _ = unicode.IsLetter

var serializedLexerAtn = []uint16{
	3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 43, 277,
	8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7,
	9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12,
	4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4,
	18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23,
	9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9,
	28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33,
	4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4,
	39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44,
	9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 3, 2, 3, 2, 3, 3, 3, 3,
	3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7,
	3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 12,
	3, 12, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 16, 3,
	16, 3, 16, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 20,
	3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24, 3, 24, 3,
	25, 3, 25, 3, 26, 3, 26, 3, 27, 3, 27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 29,
	3, 29, 3, 30, 3, 30, 3, 31, 3, 31, 3, 32, 3, 32, 3, 33, 3, 33, 3, 33, 3,
	33, 3, 33, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 35, 3, 35, 3, 35,
	7, 35, 186, 10, 35, 12, 35, 14, 35, 189, 11, 35, 3, 36, 6, 36, 192, 10,
	36, 13, 36, 14, 36, 193, 3, 37, 3, 37, 7, 37, 198, 10, 37, 12, 37, 14,
	37, 201, 11, 37, 3, 37, 3, 37, 3, 38, 3, 38, 7, 38, 207, 10, 38, 12, 38,
	14, 38, 210, 11, 38, 3, 38, 3, 38, 3, 39, 3, 39, 5, 39, 216, 10, 39, 3,
	39, 6, 39, 219, 10, 39, 13, 39, 14, 39, 220, 3, 40, 7, 40, 224, 10, 40,
	12, 40, 14, 40, 227, 11, 40, 3, 40, 3, 40, 6, 40, 231, 10, 40, 13, 40,
	14, 40, 232, 3, 40, 5, 40, 236, 10, 40, 3, 40, 6, 40, 239, 10, 40, 13,
	40, 14, 40, 240, 3, 40, 3, 40, 5, 40, 245, 10, 40, 3, 41, 3, 41, 3, 41,
	7, 41, 250, 10, 41, 12, 41, 14, 41, 253, 11, 41, 3, 41, 3, 41, 3, 42, 3,
	42, 3, 43, 3, 43, 3, 44, 3, 44, 3, 44, 5, 44, 264, 10, 44, 3, 45, 3, 45,
	3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 47, 3, 47, 3, 47, 3, 47, 2,
	2, 48, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21,
	12, 23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39,
	21, 41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 27, 53, 28, 55, 29, 57,
	30, 59, 31, 61, 32, 63, 33, 65, 34, 67, 35, 69, 36, 71, 37, 73, 38, 75,
	39, 77, 40, 79, 41, 81, 42, 83, 2, 85, 2, 87, 2, 89, 2, 91, 2, 93, 43,
	3, 2, 11, 3, 2, 37, 37, 3, 2, 95, 95, 4, 2, 71, 71, 103, 103, 4, 2, 45,
	45, 47, 47, 5, 2, 2, 33, 41, 41, 94, 94, 5, 2, 67, 92, 97, 97, 99, 124,
	7, 2, 41, 41, 94, 94, 112, 112, 116, 116, 118, 118, 5, 2, 50, 59, 67, 72,
	99, 104, 5, 2, 11, 12, 14, 15, 34, 34, 2, 286, 2, 3, 3, 2, 2, 2, 2, 5,
	3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13,
	3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2,
	21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2,
	2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2,
	2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2,
	2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 2, 51, 3,
	2, 2, 2, 2, 53, 3, 2, 2, 2, 2, 55, 3, 2, 2, 2, 2, 57, 3, 2, 2, 2, 2, 59,
	3, 2, 2, 2, 2, 61, 3, 2, 2, 2, 2, 63, 3, 2, 2, 2, 2, 65, 3, 2, 2, 2, 2,
	67, 3, 2, 2, 2, 2, 69, 3, 2, 2, 2, 2, 71, 3, 2, 2, 2, 2, 73, 3, 2, 2, 2,
	2, 75, 3, 2, 2, 2, 2, 77, 3, 2, 2, 2, 2, 79, 3, 2, 2, 2, 2, 81, 3, 2, 2,
	2, 2, 93, 3, 2, 2, 2, 3, 95, 3, 2, 2, 2, 5, 97, 3, 2, 2, 2, 7, 99, 3, 2,
	2, 2, 9, 102, 3, 2, 2, 2, 11, 105, 3, 2, 2, 2, 13, 108, 3, 2, 2, 2, 15,
	112, 3, 2, 2, 2, 17, 114, 3, 2, 2, 2, 19, 116, 3, 2, 2, 2, 21, 118, 3,
	2, 2, 2, 23, 121, 3, 2, 2, 2, 25, 123, 3, 2, 2, 2, 27, 126, 3, 2, 2, 2,
	29, 129, 3, 2, 2, 2, 31, 131, 3, 2, 2, 2, 33, 134, 3, 2, 2, 2, 35, 136,
	3, 2, 2, 2, 37, 139, 3, 2, 2, 2, 39, 142, 3, 2, 2, 2, 41, 145, 3, 2, 2,
	2, 43, 147, 3, 2, 2, 2, 45, 149, 3, 2, 2, 2, 47, 151, 3, 2, 2, 2, 49, 153,
	3, 2, 2, 2, 51, 155, 3, 2, 2, 2, 53, 157, 3, 2, 2, 2, 55, 161, 3, 2, 2,
	2, 57, 163, 3, 2, 2, 2, 59, 165, 3, 2, 2, 2, 61, 167, 3, 2, 2, 2, 63, 169,
	3, 2, 2, 2, 65, 171, 3, 2, 2, 2, 67, 176, 3, 2, 2, 2, 69, 182, 3, 2, 2,
	2, 71, 191, 3, 2, 2, 2, 73, 195, 3, 2, 2, 2, 75, 204, 3, 2, 2, 2, 77, 213,
	3, 2, 2, 2, 79, 244, 3, 2, 2, 2, 81, 246, 3, 2, 2, 2, 83, 256, 3, 2, 2,
	2, 85, 258, 3, 2, 2, 2, 87, 260, 3, 2, 2, 2, 89, 265, 3, 2, 2, 2, 91, 267,
	3, 2, 2, 2, 93, 273, 3, 2, 2, 2, 95, 96, 7, 65, 2, 2, 96, 4, 3, 2, 2, 2,
	97, 98, 7, 60, 2, 2, 98, 6, 3, 2, 2, 2, 99, 100, 7, 126, 2, 2, 100, 101,
	7, 126, 2, 2, 101, 8, 3, 2, 2, 2, 102, 103, 7, 113, 2, 2, 103, 104, 7,
	116, 2, 2, 104, 10, 3, 2, 2, 2, 105, 106, 7, 40, 2, 2, 106, 107, 7, 40,
	2, 2, 107, 12, 3, 2, 2, 2, 108, 109, 7, 99, 2, 2, 109, 110, 7, 112, 2,
	2, 110, 111, 7, 102, 2, 2, 111, 14, 3, 2, 2, 2, 112, 113, 7, 126, 2, 2,
	113, 16, 3, 2, 2, 2, 114, 115, 7, 96, 2, 2, 115, 18, 3, 2, 2, 2, 116, 117,
	7, 40, 2, 2, 117, 20, 3, 2, 2, 2, 118, 119, 7, 63, 2, 2, 119, 120, 7, 63,
	2, 2, 120, 22, 3, 2, 2, 2, 121, 122, 7, 63, 2, 2, 122, 24, 3, 2, 2, 2,
	123, 124, 7, 35, 2, 2, 124, 125, 7, 63, 2, 2, 125, 26, 3, 2, 2, 2, 126,
	127, 7, 62, 2, 2, 127, 128, 7, 64, 2, 2, 128, 28, 3, 2, 2, 2, 129, 130,
	7, 62, 2, 2, 130, 30, 3, 2, 2, 2, 131, 132, 7, 62, 2, 2, 132, 133, 7, 63,
	2, 2, 133, 32, 3, 2, 2, 2, 134, 135, 7, 64, 2, 2, 135, 34, 3, 2, 2, 2,
	136, 137, 7, 64, 2, 2, 137, 138, 7, 63, 2, 2, 138, 36, 3, 2, 2, 2, 139,
	140, 7, 62, 2, 2, 140, 141, 7, 62, 2, 2, 141, 38, 3, 2, 2, 2, 142, 143,
	7, 64, 2, 2, 143, 144, 7, 64, 2, 2, 144, 40, 3, 2, 2, 2, 145, 146, 7, 45,
	2, 2, 146, 42, 3, 2, 2, 2, 147, 148, 7, 47, 2, 2, 148, 44, 3, 2, 2, 2,
	149, 150, 7, 44, 2, 2, 150, 46, 3, 2, 2, 2, 151, 152, 7, 49, 2, 2, 152,
	48, 3, 2, 2, 2, 153, 154, 7, 39, 2, 2, 154, 50, 3, 2, 2, 2, 155, 156, 7,
	35, 2, 2, 156, 52, 3, 2, 2, 2, 157, 158, 7, 112, 2, 2, 158, 159, 7, 113,
	2, 2, 159, 160, 7, 118, 2, 2, 160, 54, 3, 2, 2, 2, 161, 162, 7, 128, 2,
	2, 162, 56, 3, 2, 2, 2, 163, 164, 7, 42, 2, 2, 164, 58, 3, 2, 2, 2, 165,
	166, 7, 43, 2, 2, 166, 60, 3, 2, 2, 2, 167, 168, 7, 46, 2, 2, 168, 62,
	3, 2, 2, 2, 169, 170, 7, 962, 2, 2, 170, 64, 3, 2, 2, 2, 171, 172, 7, 118,
	2, 2, 172, 173, 7, 116, 2, 2, 173, 174, 7, 119, 2, 2, 174, 175, 7, 103,
	2, 2, 175, 66, 3, 2, 2, 2, 176, 177, 7, 104, 2, 2, 177, 178, 7, 99, 2,
	2, 178, 179, 7, 110, 2, 2, 179, 180, 7, 117, 2, 2, 180, 181, 7, 103, 2,
	2, 181, 68, 3, 2, 2, 2, 182, 187, 5, 83, 42, 2, 183, 186, 5, 83, 42, 2,
	184, 186, 5, 85, 43, 2, 185, 183, 3, 2, 2, 2, 185, 184, 3, 2, 2, 2, 186,
	189, 3, 2, 2, 2, 187, 185, 3, 2, 2, 2, 187, 188, 3, 2, 2, 2, 188, 70, 3,
	2, 2, 2, 189, 187, 3, 2, 2, 2, 190, 192, 5, 85, 43, 2, 191, 190, 3, 2,
	2, 2, 192, 193, 3, 2, 2, 2, 193, 191, 3, 2, 2, 2, 193, 194, 3, 2, 2, 2,
	194, 72, 3, 2, 2, 2, 195, 199, 7, 37, 2, 2, 196, 198, 10, 2, 2, 2, 197,
	196, 3, 2, 2, 2, 198, 201, 3, 2, 2, 2, 199, 197, 3, 2, 2, 2, 199, 200,
	3, 2, 2, 2, 200, 202, 3, 2, 2, 2, 201, 199, 3, 2, 2, 2, 202, 203, 7, 37,
	2, 2, 203, 74, 3, 2, 2, 2, 204, 208, 7, 93, 2, 2, 205, 207, 10, 3, 2, 2,
	206, 205, 3, 2, 2, 2, 207, 210, 3, 2, 2, 2, 208, 206, 3, 2, 2, 2, 208,
	209, 3, 2, 2, 2, 209, 211, 3, 2, 2, 2, 210, 208, 3, 2, 2, 2, 211, 212,
	7, 95, 2, 2, 212, 76, 3, 2, 2, 2, 213, 215, 9, 4, 2, 2, 214, 216, 9, 5,
	2, 2, 215, 214, 3, 2, 2, 2, 215, 216, 3, 2, 2, 2, 216, 218, 3, 2, 2, 2,
	217, 219, 5, 85, 43, 2, 218, 217, 3, 2, 2, 2, 219, 220, 3, 2, 2, 2, 220,
	218, 3, 2, 2, 2, 220, 221, 3, 2, 2, 2, 221, 78, 3, 2, 2, 2, 222, 224, 5,
	85, 43, 2, 223, 222, 3, 2, 2, 2, 224, 227, 3, 2, 2, 2, 225, 223, 3, 2,
	2, 2, 225, 226, 3, 2, 2, 2, 226, 228, 3, 2, 2, 2, 227, 225, 3, 2, 2, 2,
	228, 230, 7, 48, 2, 2, 229, 231, 5, 85, 43, 2, 230, 229, 3, 2, 2, 2, 231,
	232, 3, 2, 2, 2, 232, 230, 3, 2, 2, 2, 232, 233, 3, 2, 2, 2, 233, 235,
	3, 2, 2, 2, 234, 236, 5, 77, 39, 2, 235, 234, 3, 2, 2, 2, 235, 236, 3,
	2, 2, 2, 236, 245, 3, 2, 2, 2, 237, 239, 5, 85, 43, 2, 238, 237, 3, 2,
	2, 2, 239, 240, 3, 2, 2, 2, 240, 238, 3, 2, 2, 2, 240, 241, 3, 2, 2, 2,
	241, 242, 3, 2, 2, 2, 242, 243, 5, 77, 39, 2, 243, 245, 3, 2, 2, 2, 244,
	225, 3, 2, 2, 2, 244, 238, 3, 2, 2, 2, 245, 80, 3, 2, 2, 2, 246, 251, 7,
	41, 2, 2, 247, 250, 5, 87, 44, 2, 248, 250, 10, 6, 2, 2, 249, 247, 3, 2,
	2, 2, 249, 248, 3, 2, 2, 2, 250, 253, 3, 2, 2, 2, 251, 249, 3, 2, 2, 2,
	251, 252, 3, 2, 2, 2, 252, 254, 3, 2, 2, 2, 253, 251, 3, 2, 2, 2, 254,
	255, 7, 41, 2, 2, 255, 82, 3, 2, 2, 2, 256, 257, 9, 7, 2, 2, 257, 84, 3,
	2, 2, 2, 258, 259, 4, 50, 59, 2, 259, 86, 3, 2, 2, 2, 260, 263, 7, 94,
	2, 2, 261, 264, 9, 8, 2, 2, 262, 264, 5, 91, 46, 2, 263, 261, 3, 2, 2,
	2, 263, 262, 3, 2, 2, 2, 264, 88, 3, 2, 2, 2, 265, 266, 9, 9, 2, 2, 266,
	90, 3, 2, 2, 2, 267, 268, 7, 119, 2, 2, 268, 269, 5, 89, 45, 2, 269, 270,
	5, 89, 45, 2, 270, 271, 5, 89, 45, 2, 271, 272, 5, 89, 45, 2, 272, 92,
	3, 2, 2, 2, 273, 274, 9, 10, 2, 2, 274, 275, 3, 2, 2, 2, 275, 276, 8, 47,
	2, 2, 276, 94, 3, 2, 2, 2, 18, 2, 185, 187, 193, 199, 208, 215, 220, 225,
	232, 235, 240, 244, 249, 251, 263, 3, 8, 2, 2,
}

var lexerDeserializer = antlr.NewATNDeserializer(nil)
var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)

var lexerChannelNames = []string{
	"DEFAULT_TOKEN_CHANNEL", "HIDDEN",
}

var lexerModeNames = []string{
	"DEFAULT_MODE",
}

var lexerLiteralNames = []string{
	"", "'?'", "':'", "'||'", "'or'", "'&&'", "'and'", "'|'", "'^'", "'&'",
	"'=='", "'='", "'!='", "'<>'", "'<'", "'<='", "'>'", "'>='", "'<<'", "'>>'",
	"'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "'not'", "'~'", "'('", "')'",
	"','", "'\u03C0'", "'true'", "'false'",
}

var lexerSymbolicNames = []string{
	"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
	"", "", "", "", "", "", "", "", "", "", "", "", "", "", "TRUE", "FALSE",
	"NAME", "INTEGER", "DATETIME", "VAR", "E", "FLOAT", "STRING", "WS",
}

var lexerRuleNames = []string{
	"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
	"T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
	"T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "T__24",
	"T__25", "T__26", "T__27", "T__28", "T__29", "T__30", "TRUE", "FALSE",
	"NAME", "INTEGER", "DATETIME", "VAR", "E", "FLOAT", "STRING", "LETTER",
	"DIGIT", "EscapeSequence", "HexDigit", "UnicodeEscape", "WS",
}

type FormulaLexer struct {
	*antlr.BaseLexer
	channelNames []string
	modeNames    []string
	// TODO: EOF string
}

var lexerDecisionToDFA = make([]*antlr.DFA, len(lexerAtn.DecisionToState))

func init() {
	for index, ds := range lexerAtn.DecisionToState {
		lexerDecisionToDFA[index] = antlr.NewDFA(ds, index)
	}
}

func NewFormulaLexer(input antlr.CharStream) *FormulaLexer {

	l := new(FormulaLexer)

	l.BaseLexer = antlr.NewBaseLexer(input)
	l.Interpreter = antlr.NewLexerATNSimulator(l, lexerAtn, lexerDecisionToDFA, antlr.NewPredictionContextCache())

	l.channelNames = lexerChannelNames
	l.modeNames = lexerModeNames
	l.RuleNames = lexerRuleNames
	l.LiteralNames = lexerLiteralNames
	l.SymbolicNames = lexerSymbolicNames
	l.GrammarFileName = "Formula.g4"
	// TODO: l.EOF = antlr.TokenEOF

	return l
}

// FormulaLexer tokens.
const (
	FormulaLexerT__0     = 1
	FormulaLexerT__1     = 2
	FormulaLexerT__2     = 3
	FormulaLexerT__3     = 4
	FormulaLexerT__4     = 5
	FormulaLexerT__5     = 6
	FormulaLexerT__6     = 7
	FormulaLexerT__7     = 8
	FormulaLexerT__8     = 9
	FormulaLexerT__9     = 10
	FormulaLexerT__10    = 11
	FormulaLexerT__11    = 12
	FormulaLexerT__12    = 13
	FormulaLexerT__13    = 14
	FormulaLexerT__14    = 15
	FormulaLexerT__15    = 16
	FormulaLexerT__16    = 17
	FormulaLexerT__17    = 18
	FormulaLexerT__18    = 19
	FormulaLexerT__19    = 20
	FormulaLexerT__20    = 21
	FormulaLexerT__21    = 22
	FormulaLexerT__22    = 23
	FormulaLexerT__23    = 24
	FormulaLexerT__24    = 25
	FormulaLexerT__25    = 26
	FormulaLexerT__26    = 27
	FormulaLexerT__27    = 28
	FormulaLexerT__28    = 29
	FormulaLexerT__29    = 30
	FormulaLexerT__30    = 31
	FormulaLexerTRUE     = 32
	FormulaLexerFALSE    = 33
	FormulaLexerNAME     = 34
	FormulaLexerINTEGER  = 35
	FormulaLexerDATETIME = 36
	FormulaLexerVAR      = 37
	FormulaLexerE        = 38
	FormulaLexerFLOAT    = 39
	FormulaLexerSTRING   = 40
	FormulaLexerWS       = 41
)
